<?php $html->css('/events/css/events.css',null,array(),false);?>
<div id="event_whosin_sideblock" class="noborder">
	<div id='whosin_events_sideindex1'>
	<table><tr><td colspan=4>
	<?php
	/*uncomment it later*/	
	//$attendees = $this->requestAction('events/whosin/'.$eventId);
	/*uncomment it later*/
		if(!empty($attendees))
		{
			echo __("Who's in?")." ".__n("%s response","%s responses",$attendees[0]['Event']['whosin_count'],true)."<br/></td></tr><tr>";
			$cnt=0;
			foreach ($attendees as $attendee)
			{
				if(isset($attendee['User']))
				{
					echo "<td width='25%'>";
					echo $html->link($html->image($attendee['User']['avatar'],array('class'=>"profile_pic",'alt'=>sprintf(__("%s profile"),$attendee['User']['username']),'thumb'=>array('crop'=>true,'width'=>40,'height'=>40))),$attendee['User']['profile_url'],array("escape"=>false));
					echo "<br/>".$html->link($attendee['User']['display_name'],$attendee['User']['profile_url']);
					echo "</td>";
				}
				if(++$cnt%4==0)
				{
					echo "</tr>";
				}					
			}
			while($cnt++%4!=0)
			{			
				echo "<td width='25%'></td>";
			}
		}
		else 
		{
			echo __("Who's in?")." ".__n("%s response","%s responses",0,true)."<br/></td></tr><tr>";
		}
	?>
	</table><br/>		
	</div>
	<div class='clear'></div>
	
	<div id='whosin_events_sideindex2'>
	<table><tr><td colspan=4>
	<?php 
		if(!empty($interested))
		{
			echo __("Sounds cool")." ".__n("%s response","%s responses",$interested[0]['Event']['soundscool_count'],true)."<br/></td></tr><tr>";
			$cnt=0;
			foreach ($interested as $interestedUser)
			{
				if(isset($interestedUser['User']))
				{
					echo "<td width='25%'>";
					echo $html->link($html->image($interestedUser['User']['avatar'],array('class'=>"profile_pic",'alt'=>sprintf(__("%s profile"),$interestedUser['User']['username']),'thumb'=>array('crop'=>true,'width'=>40,'height'=>40))),$interestedUser['User']['profile_url'],array("escape"=>false));
					echo "<br/>".$html->link($interestedUser['User']['display_name'],$interestedUser['User']['profile_url']);
					echo "</td>";
				}
				if(++$cnt%4==0)
				{
					echo "</tr>";
				}					
			}
			while($cnt++%4!=0)
			{			
				echo "<td width='25%'></td>";
			}
		}
		else 
		{
			echo __("Sounds cool")." ".__n("%s response","%s responses",$interested[0]['Event']['soundscool_count'],true)."<br/></td></tr><tr>";
		}
	?>
	</table><br/>		
	</div>
	<div class='clear'></div>
</div>